<?php

/**
 *  
 */

class Item
{
    private $_properties;
    /**
     * @access public
     */
    public function __construct($resultSet)
    {
        if(is_obj($resultSet))
        {
            PDOStatement::fetchColumn(0);
        }

        $this->_properties = get_class_vars(self);
    }


    /**
     * @access public
     */
    public function __destruct()
    {
        var_dump($this);
    }
}

$db = new PDO('mysql:host=localhost;port=3306;dbname=phpmymedia', 'localuser', 'localpasswd');
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
new Item($db);